import request from "@/utils/request";

// 查询列表
export function regList(query) {
  return request({
    url: "/mall/regBranch/list",
    method: "get",
    params: query,
  });
}
// 城市列表
export function cityList(query) {
  return request({
    url: "/mall/regBranch/showRegCityList",
    method: "get",
    params: query,
  });
}
// 添加网点
export function addRegBranch(data) {
  return request({
    url: "/mall/regBranch",
    method: "post",
    data,
  });
}
// 修改网点
export function updateRegBranch(data) {
  return request({
    url: "/mall/regBranch",
    method: "put",
    data,
  });
}
//查询网点
export function getRegBranch(id) {
  return request({
    url: "/mall/regBranch/" + id,
    method: "get",
  });
}

// 下载网点商城码
export function downMallQrCode(data) {
  return request({
    url: "/mall/regBranch/downMallQrCode",
    method: "post",
    data,
  });
}
